package com.open.capacity.reimburse.service;

import com.open.capacity.commons.Result;
import com.open.capacity.reimburse.entity.BillProjectApply;

import com.open.capacity.commons.PageResult;
import com.open.capacity.workflow.model.WFEngine.WFContent;

import java.util.Map;
import java.util.List;

/**
 * 立项申请表
 *
 * @author
 * @email
 * @date 2021-06-29 10:26:53
 */
public interface BillProjectApplyService {
    /**
     * 添加
     *
     * @param billProjectApply
     */
    int save(BillProjectApply billProjectApply);

    /**
     * 修改
     *
     * @param billProjectApply
     */
    int update(BillProjectApply billProjectApply);


    /**
     * 送审
     *
     */
    Result<WFContent> send(Boolean isNew, String processId, String schemeCode, String processName, Integer processLevel, String description, String auditors, String formData);

    /**
     * 取消送审
     *
     */
    int cancel(String processId);


    /**
     * 删除
     *
     * @param id
     */
    int delete(String id);


    /**
     * 查询记录
     *
     * @param id
     * @return
     */
    BillProjectApply findById(String id);

    /**
     * 分页
     *
     * @param params
     * @return
     */
    PageResult<BillProjectApply> pageAll(Map<String, Object> params);

    /**
     * 列表
     *
     * @param params
     * @return
     */
    List<BillProjectApply> findAll(Map<String, Object> params);
}

